package org.alex.samples.service;

import java.util.List;

import org.alex.samples.dao.IExamUserRoleDAO;
import org.alex.samples.model.ExamUserRole;
import org.alex.samples.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ExamUserRoleService implements IExamUserRoleService{
	@Autowired
	private IExamUserRoleDAO examUserRoleDAO;
	public List<User> findByRoleId(Integer id) {
		return examUserRoleDAO.findByRoleId(id);
	}

	@Override
	public List<ExamUserRole> findAll() {
		return examUserRoleDAO.findAll();
	}

}
